package com.hzit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzit.model.LayuiPage;
import com.hzit.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper extends BaseMapper<User> {


    public User selectById(@Param("id") Long id);

    public int delete(@Param("id") Long id);

    /**
     * 分页查询当前页数据
     *
     * @param layuiPage
     * @return
     */
    List<User> selectPage(LayuiPage<User> layuiPage);

    /**
     * 分页总记录数
     *
     * @param layuiPage
     * @return
     */
    Integer selectPageCount(LayuiPage<User> layuiPage);

}
